#28ms 2984KB 23Min
lnum=[int(i) for i in input().split()]

ans=""

for i in range(1,10):
    if lnum[i]!=0:
        ans+=lnum[i]*str(i)

# ans=ans[:1]+"0"*lnum[0]+ans[1:]
print(ans[:1]+"0"*lnum[0]+ans[1:])
